package com.boat.starter.ruoyi.client.response;

import java.io.Serializable;

import lombok.Getter;
import lombok.Setter;

/**
 * 响应结果
 * 
 * @author 周江
 *
 */
@Setter
@Getter
public class RmsResponse<T> implements Serializable {
	private static final long serialVersionUID = 4086044951715256018L;

	/**
	 * 操作成功
	 */
	private static final int CODE_SUCCESS = 200;

	private int code;
	private String msg;
	private T data;

	public RmsResponse() {
		super();
	}

	public boolean isSuccess() {
		if (CODE_SUCCESS == code) {
			return true;
		}

		return false;
	}
}
